package {{.App}}

import (
	"ginfast/app/{{.App}}/api"
	"ginfast/app/{{.App}}/model"
	"ginfast/pkg/orm"
	"ginfast/pkg/ginx"
)

// init 初始化
func init() {
	orm.RegisterModel(
		&model.{{.Model}}{},
	)
	ginx.RegisterAuth("/{{.App}}", func(r *ginx.RouterGroup) {
		r.Register("/{{.Name}}", api.{{.Model}}{}.Routers)
	})
}
